﻿#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>
int main()
{
	printf("%c\n", '\'');
	printf("%s\n", "\"");
	printf("c:\\test\\code\\test.c\n");
	printf("\a");
	printf("%c\n", '\130'); //130是8进制，转换成10进制是88，以88作为ASCII码值的字符是
	printf("%c\n", '\x30'); //x30中的30是16进制，转换成10进制是48，以48作为ASCII码值
	system("pause");

	printf("%d\n",7/2);
	printf("%lf\n", 7 / 2.0);//3.5
	int a =(int)3.14;
	printf("a=%d\n",a);
	/*int score = 0;
	printf("请输入成绩：");
	scanf("%d",&score);
	printf("score = %d\n",score);*/
	/*int i = 0;
	for (i = 0; i<10; i++)
	{
		if (i = 5)
			printf("%d ", i);
	}


	*/
	printf("%9s\n","ab");
	printf("%-9s\n","abd");
	printf("%12f\n",23.23);
	printf("%+f\n",12.12);
	printf("%+f\n",-12.12);
	printf("%+f\n", 12.12);
	printf("%+8.2f\n", 12.2);
	printf("%+8.2f\n",-12.2);
	printf("%-8.2f\n", -12.2);
	
	/*int i, j;
	float x,y;
	scanf("%d%d%f%f", &i, &j, &x, &y);
	printf("%d %d %f %f",i ,j ,x ,y );*/

	int x;
	float y;

	// ⽤⼾输⼊ " -13.45e12# 0"
	scanf("%d%f", &x, &y);

	printf("%d %f",x,y);

	int a, b;
	char c, d;
	scanf("%d%d %c %c",&a,&b,&c,&d);
	printf("%d %d %c %c\n",a,b,c,d);
	
	system("pause");
	return 0;
}